package main

import (
	"fmt"
	"time"
)

func main() {
	c := make(chan int, 3)
	fmt.Println("len = ", len(c), " cap=", cap(c))

	go func() {
		c <- 1
		fmt.Println("len(c)=", len(c), ", cap(c)=", cap(c))
	}()

	time.Sleep(2 * time.Second)

	n := <-c
	fmt.Println(" len(c)=", len(c), ", cap(c)=", cap(c))

	fmt.Println(n)

}
